import request from '@/utils/request'

// 查询本地用户评论列表
export function listReviers(query) {
  return request({
    url: '/customer/reviers/list',
    method: 'get',
    params: query
  })
}

// 查询本地用户评论详细
export function getReviers(localReviewsId) {
  return request({
    url: '/customer/reviers/' + localReviewsId,
    method: 'get'
  })
}

// 新增本地用户评论
export function addReviers(data) {
  return request({
    url: '/customer/reviers',
    method: 'post',
    data: data
  })
}

// 修改本地用户评论
export function updateReviers(data) {
  return request({
    url: '/customer/reviers',
    method: 'put',
    data: data
  })
}

// 删除本地用户评论
export function delReviers(localReviewsId) {
  return request({
    url: '/customer/reviers/' + localReviewsId,
    method: 'delete'
  })
}

// 导出本地用户评论
export function exportReviers(query) {
  return request({
    url: '/customer/reviers/export',
    method: 'get',
    params: query
  })
}